﻿using System.Net.Http.Headers;

namespace KWT.DRG_DIP.DO.Group.DIPGroup
{
    /// <summary>
    /// DIP分组器入参
    /// </summary>
    public class DIPGroupInputPara: GroupInputParaBase
    {

        /// <summary>
        /// 主诊断编码
        /// </summary>
        public string MainDiagnoseCode { get; set; } = "";
        /// <summary>
        /// 主诊断亚目： A09.1
        /// </summary>
        public string Suborder
        {
            get
            {
                return MainDiagnoseCode?.Length > 5 ? MainDiagnoseCode.Substring(0, 5) : "";
            }
            set;
        } = "";

        /// <summary>
        /// 主诊断类目：A09
        /// </summary>
        public string Category {
            get
            {
                return MainDiagnoseCode?.Length > 3 ? MainDiagnoseCode.Substring(0, 3) : "";
            }
            set;
        } = "";

        /// <summary>
        /// 主诊断首字母：A
        /// </summary>
        public string InitialLetter
        {
            get
            {
                return MainDiagnoseCode?.Length > 1 ? MainDiagnoseCode.Substring(0, 1) : "";         
            }
            set;
        } = "";


        /// <summary>
        ///  离院方式：-1:其他   1:死亡;
        /// </summary>
        public int LeaveType { get; set; } = -1;

        /// <summary>
        /// 住院天数
        /// </summary>
        public int Days { get; set; } = 0;


    }
}
